package com.gxa.zhonglong.service;

import com.gxa.zhonglong.pojo.Goods;
import com.gxa.zhonglong.pojo.StoreBarter;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * @author wanjun
 * @version 1.0
 * @date 2021/10/27 14:44
 */
public interface StoreBarterService {
     Map<String,Object> selectGoodByCode(String goodCoding);
     void add(StoreBarter storeBarter,String storeBarterNum, List<String> goodsCoding);
    String selectNumByGoodCoding(String goodCoding);
      List<StoreBarter> selectAll(Integer offset, Integer size);
      List<StoreBarter> selectAll2();
     List<StoreBarter> selectByField(Timestamp from,  Timestamp to,
                                     String storeBarterGclass,  String storeBarterNews,
                                     String storeBarterNewc,  String storeBarterOlds,
                                     String storeBarterOldc,  String storeBarterCusername,
                                     Integer offset,  Integer size);

    public List<StoreBarter> selectByField2(Timestamp from, Timestamp to, String storeBarterGclass,
                                           String storeBarterNews, String storeBarterNewc, String storeBarterOlds,
                                           String storeBarterOldc, String storeBarterCusername);
    void updateState0(String storeBarterNum);
    void updateState2(String storeBarterNum);
    void delete(String storeBarterNum);
    void updateState1(String storeBarterNum,String storeBarterEusername,Timestamp storeBarterEtime);
    void updateBarter(String storeBarterNum, Timestamp storeBarterCtime,
                      String storeBarterNews, String storeBarterNewc );


    List<String> selectAllStore();
    List<String> selectCounter(String barterName) throws Exception;
    void deleteBagood(String storeBarterNum,String goodCoding);
    List<Map<String,Object>> selectBaDeta(String storeBarterNum,Integer offset,Integer size);
    List<Map<String,Object>> selectBaDeta1(String storeBarterNum);

}

